#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@Author   : 李吉凯
@Email    : lijikai1206@163.com
@Time     : 2021/7/12 7:39
@File     : dataJM.py
'''


# 6983817089911898115
# ht-6c8159d8-3ffa-77ff-97d1-10a660a67704
import base64


def encode_base64(s):
    bytes_url = s.encode("utf-8")
    str_res = base64.b64encode(bytes_url)
    return str_res.decode("utf-8")


def decode_base64(s):
    str_res = base64.b64decode(s).decode("utf-8")
    return str_res


if __name__ == '__main__':
    helpdesk_id = "6983817089911898115"
    helpdesk_token = "ht-6c8159d8-3ffa-77ff-97d1-10a660a67704"
    s01 = helpdesk_id + ":" + helpdesk_token
    res02 = encode_base64(s01)
    print(res02)